<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>

        let name = '小猿';
        let age = 20;
        let str = '我叫'+name+'名字,今年'+age+'岁';
        console.log(str);

        let userInfo = `我叫${name}名字,今年${age}岁`;
        console.log(userInfo);

        let id = 100;
        let url = 'http://localhost:8080/user/' + id;
        console.log(url);

        url = `http://localhost:8080/user/${id}`;
        console.log(url);

    </script>
</body>
</html>